/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-09-21 15:29:16
 * @LastEditors: huangtianyang
 * @LastEditTime: 2023-09-22 10:46:59
 * @FilePath: \cxl-admin\src\apis\statistics\topUp.ts
 */
import axios from '../../axios/index'

/**
 * 充值统计-套餐
 * @returns
 */
export const topUpSetMealChart = () => {
    return axios({
        method: 'get',
        url: '/api/mall/company/store/productStoreAmountTypeInfo'
    })
}

/**
 * 充值统计-按年
 * @returns
 */
export const topUpYearChart = (year?: string) => {
    return axios({
        method: 'get',
        url: '/api/mall/company/store/productStoreAmountMonthInfo',
        params: { year }
    })
}

/**
 * 充值统计-产品分类汇总
 * @returns
 */
export const topUpProcutTypeChart = () => {
    return axios({
        method: 'get',
        url: '/api/mall/company/store/productStoreAmountInfo'
    })
}
